package com.framework.service.core;

import com.framework.common.config.DynamicDataSourceConfig;
import com.framework.common.config.redis.RestTemplateConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import tk.mybatis.spring.annotation.MapperScan;

@EnableSwagger2
@EnableEurekaClient
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@EnableFeignClients(basePackages="com.framework.auth.api")
@MapperScan(basePackages = "com.framework.service.core.dao.mapper")
@ComponentScan({"com.framework.common.config","com.framework.common.util","com.framework.common.aspect","com.framework.service.core","com.framework.auth.api"})
@Import({DynamicDataSourceConfig.class,RestTemplateConfiguration.class})
public class TtzCloudServiceCoreApplication {
    public static void main(String[] args) {
        SpringApplication.run(TtzCloudServiceCoreApplication.class, args);
    }
}
